package org.springcloud.wisdom.amusement.login.loginmsg.service;


import org.springcloud.wisdom.amusement.login.loginmsg.dao.AdminDao;
import org.springcloud.wisdom.amusement.login.loginmsg.entity.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminService {
    @Autowired
    AdminDao adminDao;

    //修改商家信息
    public boolean updataAdmin(Admin admin){
        if (admin == null){
            return false;
        }
        return adminDao.updateAdmin(admin)>0;
    }

}
